﻿using Domain.Base;
using DtoFw.Enum;
using SqlSugar;

namespace Domain.Entity
{
    ///<summary>
    ///案件
    ///</summary>
    [SugarTable("cases")]
    [DB(EnumDatabase.Mysql, Cache = false)]
    public class CaseEntity : BaseEntity
    {
        /// <summary>
        /// 案件编号
        /// </summary>
        [SugarColumn(ColumnName = "CaseNo")]
        public System.String CaseNo { get; set; }

        /// <summary>
        /// 勘验编号
        /// </summary>
        [SugarColumn(ColumnName = "InspectionNo")]
        public System.String InspectionNo { get; set; }

        /// <summary>
        /// 案件名称
        /// </summary>
        [SugarColumn(ColumnName = "CaseName")]
        public System.String CaseName { get; set; }

        /// <summary>
        /// 案件类别Code
        /// </summary>
        [SugarColumn(ColumnName = "CaseTypeCode")]
        public System.String CaseTypeCode { get; set; }

        /// <summary>
        /// 发案时间
        /// </summary>
        [SugarColumn(ColumnName = "CaseTime")]
        public System.DateTime? CaseTime { get; set; }

        /// <summary>
        /// 发案地点
        /// </summary>
        [SugarColumn(ColumnName = "CasePlace")]
        public System.String CasePlace { get; set; }

        /// <summary>
        /// 案件类别中文
        /// </summary>
        [SugarColumn(ColumnName = "CaseTypeName")]
        public System.String CaseTypeName { get; set; }

        /// <summary>
        /// 主办人
        /// </summary>
        [SugarColumn(ColumnName = "HostUserId")]
        public System.Int64? HostUserId { get; set; }

        /// <summary>
        /// 主办人姓名
        /// </summary>
        [SugarColumn(ColumnName = "HostUserName")]
        public System.String HostUserName { get; set; }

        /// <summary>
        /// 主办单位
        /// </summary>
        [SugarColumn(ColumnName = "HostUserOrgan")]
        public System.Int64 HostUserOrgan { get; set; }

        /// <summary>
        /// 主办单位名称
        /// </summary>
        [SugarColumn(ColumnName = "HostUserOrganName")]
        public System.String HostUserOrganName { get; set; }

        /// <summary>
        /// 简要案情
        /// </summary>
        [SugarColumn(ColumnName = "BriefCase")]
        public System.String BriefCase { get; set; }

        /// <summary>
        /// 物品状态、数量描述
        /// </summary>
        [SugarColumn(ColumnName = "PhysicalEvidenceDescribe")]
        public System.String PhysicalEvidenceDescribe { get; set; }

        /// <summary>
        /// 系统编码，本系统默认为0
        /// </summary>
        [SugarColumn(ColumnName = "Flag")]
        public System.String Flag { get; set; }

        /// <summary>
        /// 0手录/1现勘/2送检
        /// </summary>
        [SugarColumn(ColumnName = "Source")]
        public System.Int32? Source { get; set; }

        [SugarColumn(ColumnName = "Extend1")]
        public System.String Extend1 { get; set; }

        [SugarColumn(ColumnName = "Extend2")]
        public System.String Extend2 { get; set; }

        [SugarColumn(ColumnName = "Extend3")]
        public System.String Extend3 { get; set; }

        [SugarColumn(ColumnName = "Extend4")]
        public System.String Extend4 { get; set; }

        [SugarColumn(ColumnName = "Extend5")]
        public System.String Extend5 { get; set; }




        /// <summary>
        /// 单位ID
        /// </summary>、
        [SugarColumn(ColumnName = "OrganId")]
        public System.Int64 OrganId { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>、
        [SugarColumn(ColumnName = "OrganName")]
        public string OrganName { get; set; }

        /// <summary>
        /// 录入人所在机构
        /// </summary>
        [SugarColumn(ColumnName = "DeptId")]
        public System.Int64? DeptId { get; set; }

        /// <summary>
        /// 录入人
        /// </summary>
        [SugarColumn(ColumnName = "UserId")]
        public System.Int64? UserId { get; set; }

        /// <summary>
        /// 录入人区划代码
        /// </summary>
        [SugarColumn(ColumnName = "ComNo")]
        public System.String ComNo { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Remark")]
        public System.String Remark { get; set; }
    }
}
